//
//  NSObject+CFAddition.m
//  SwiftWB
//
//  Created by 冯 on 2017/4/10.
//  Copyright © 2017年 CoderFeng. All rights reserved.
//

#import "NSObject+CFAddition.h"

@implementation NSObject (CFAddition)

/// 使用字典创建模型对象
///
/// @param dict 字典
///
/// @return 模型对象
+ (instancetype)cf_objectWithDict:(NSDictionary *)dict {
    id obj = [[self alloc] init];
    
    [obj setValuesForKeysWithDictionary:dict];
    
    return obj;
}

@end
